<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        async function fn1(){
            setTimeout(function(){
                console.log(1);
            },2000)
        }

        async function fn2(){
            setTimeout(function(){
                console.log(2);
            },1000)
        }

        async function fn3(){
            setTimeout(function(){
                console.log(3);
            },500)
        }

        async function all(){
            await fn1()
            await fn2()
            await fn3()
        }

        all();


    </script>
</head>
<body>
    
</body>
</html>